package xcmg.device.dao.mapper.sale;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.sale.SaleReverseDO;
import xcmg.device.dao.entity.sale.SaleReverseExportDO;
import xcmg.device.service.vo.sale.SaleReverseVO;

import java.util.List;

@Mapper
public interface SaleReverseMapper {
    int deleteByPrimaryKey(String id);

    int insert(SaleReverseDO record);

    SaleReverseDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SaleReverseDO record);

    List<SaleReverseDO> list(SaleReverseVO vo);

    List<String> findOrderList(@Param("ids") List<String> ids);

    List<String> findDeliveryOrderList(@Param("ids") List<String> ids);

    int remove(@Param("ids") List<String> ids);

    List<SaleReverseDO> findByIds(@Param("ids") List<String> ids);

    SaleReverseDO selectByReverseOrder(@Param("reverseOrder") String reverseOrder);

    List<SaleReverseExportDO> findListForExport(@Param("ids") List<String> ids);

    int findCountForExportAll(SaleReverseVO model);

    List<SaleReverseExportDO> findListForExportAll(SaleReverseVO model);
    Integer checkPendingCount(@Param("orgId")String orgId);
    int findNumForNotAudit(@Param("ids") List<String> ids);
}